package com.itheima.pinda.feign;

import com.itheima.pinda.DTO.entity.pojo.agency.PdAgencyScope;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "pd-base")
@RequestMapping("/api/pd-agency-scope")
public interface PdAgencyScopeFeign {
    /**
     * 添加机构时添加机构作业范围
     * @param pdAgencyScopeList
     * @return
     */
    @PostMapping("/addPdAgencyScopes")
    public Boolean addPdAgencyScopes(@RequestBody List<PdAgencyScope> pdAgencyScopeList);
}
